Add regression test capability for DG100/DG200 format. (#554)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Wed, 13 May 2020 13:22:58 +0000 (07:22 -0600)
committerGitHub <noreply@github.com>
Wed, 13 May 2020 13:22:58 +0000 (07:22 -0600)
commit020cfa5432aa1064f4d0e2eb46573da54f15fd7e
treea1770a9f437226eecdd8cf1afceb07acf3067ec2
parent73d2af755b041fd1279f08da7f0fc357f5da8af8
Add regression test capability for DG100/DG200 format. (#554)

* add regression test cabability for dg100 format.

The test compares any written data with the subsequent bytes in the
reference file.  The test supplies any read data from the subsequent
bytes in the reference file.

A reference file can be created from the debug output at level 5
when reading an actual globalsat device:
egrep 'Receiving|Sent' "$log" | sed 's/^Sent: //' | sed 's/^Receiving //' \
| sed 's/RX:.*//' | xxd -r -p > "$log".bin
This creates a binary file from all the bytes transferred to or
from the device.

* update serialization reference files.

Even though the dg100 regression formats are internal, they still
get serialized.  The GUI ignores them.

* Fix memory leak exposed by new dg100 regression test.

By using QList instead of homegrown dynarray16 class.
dg-100.cc
reference/format1.txt
reference/format2.txt
reference/format3.txt
reference/track/dg100.bin [new file with mode: 0644]
reference/track/dg100.gpx [new file with mode: 0644]
testo.d/dg100.test [new file with mode: 0644]
vecs.h